import 'package:flutter/widgets.dart';
import 'package:flutter_dk_form/flutter_dk_form.dart';
import 'package:flutter_dynamic_forms/flutter_dynamic_forms.dart';

import 'multiple_input.dart' as model;

class MultipleInputRenderer extends FormElementRenderer<model.DyMultipleInput> {
  @override
  Widget render(
      model.DyMultipleInput element,
      BuildContext context,
      FormElementEventDispatcherFunction dispatcher,
      FormElementRendererFunction renderer) {
    return DkMultipleInputFormField(
      placeholder: element.placeHolder,
      title: element.title,
      attribute: element.attribute,
      maxInputLength: element.maxInput??100,
    );
  }
}
